<%@ page language="java" pageEncoding="UTF-8"%>  
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<!DOCTYPE html>  
<html>  
<head>  
<base href="<%=basePath%>">  
</head>  
<body>  
  <h1>SimpleMappingExceptionResolver方式处理的异常页面</h1>
   <%
	Exception ex = (Exception)request.getAttribute("ex");
   	out.println(ex.getMessage());
   	out.println(ex.getClass());
	%>  
</body>   
</html>  